/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package demo903;

/**
 *
 * @author Administrator
 */
import demo902.*;
import java.util.*;

public class ArrayMethod {
    public static String[] getName(){
        String names[]={"zhang","wang","li"};
        return names;

    }
    public static int[] getPi(){
        int pi[]={3,1,4};
        return pi;

    }
    public static char[] getChars(){
        char a[]=new char[5]; 
        for(char c1='c';c1<='g';c1++){
            a[c1-'c']=c1;
        }
        return a;
    }
    public static int count9(int a[]){
        int count=0;
        for(int i=0;i<a.length;i++){
            if(a[i]==9){
                count++;
            }
        }
        
        return count;
    }
    public static void change(int a[]){
        a[1]=5;
    }
 public static void main(String[] args) {
        String []n=getName();
        int []pi1=getPi();
        char c1[]=getChars();
        int b[]={1,4,9,2,3,9,8,9};
        System.out.println(count9(b));
        change(b);
        System.out.println(b[1]);
    }
}
